{template common/contentheader}
<div class="setcontent">
	<div class="settitle">
		<h3>{lang friendlink:admin}</h3>
	</div>
	<div class="alert alert-info mt10">
		<span class="label label-info">{lang info:admin}</span>
		{lang friendlink:admin}
	</div>
	<div class="setform">
		<table class="table table-striped">
        <thead>
          <tr>
            <th width="200">{lang friendlink_name:admin}</th>
            <th width="200">{lang friendlink_url:admin}</th>
            <th width="200">{lang operation:admin}</th>
          </tr> 
        </thead>
        <tbody>
        {loop $links $key $sm}
			<tr>
			<td>$sm['name']</td>
			<td>{$sm['url']}</td>
			<td><a href="{url admin/friendlink?act=delete&key=$sm['key']}">{lang delete:admin}</a></td>
          	</tr>
		{/loop}
        </tbody>
		</table>
	</div>
	<div class="settitle">
		<h3>{lang friendlink:admin}</h3>
	</div>
	<div class="setform">
		<form class="pzform" method="post" action="{url admin/friendlink?act=add}" id="addform">
			
			<div class="formgroup">
				<label class="formlabel">{lang friendlink_name:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="name" id="name"/>
				</div>
				<span class="formhelp">{lang friendlink_name:admin}</span>
			</div>
			
			<div class="formgroup">
				<label class="formlabel">{lang friendlink_url:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="url" id="url"/>
				</div>
				<span class="formhelp">{lang friendlink_url:admin}</span>
			</div>
			<div class="formbuttons">
				<button type="submit" class="btn btn-primary">{lang add:admin}</button>
			</div>
		</form>
	</div>
</div>
{template common/contentfooter}